export function debounce(fn, wait) {
  var timer = null;
  return function () {
    if (timer) {
      clearTimeout(timer);
    }
    timer = setTimeout(fn, wait);
  };
}
/* 删除对象空属性 */
export function delEmptyVal(obj) {
  for (const key in obj) {
    if (obj[key] === '' || obj[key] === undefined) {
      delete obj[key];
    }
  }
  return obj;
}
